package ternary;

public class Demo1 {
	public static void main(String[] args) {
		int num = true ? 1 : 2;
		char sex = false ? '男' : '女';
		int score =90;

		boolean good = score > 90 ? true : false;

		String phone = score == 100 ? "华为P50 pro" : "vivo";
		System.out.println(num);
		System.out.println(sex);
		System.out.println(good);
		System.out.println(phone);
	}
}
